package com.example.entity.mysql;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Productprocessresource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 品号
     */
    @ApiModelProperty(value = "品号")
    @TableField("productId")
    private String productId;

    /**
     * 工艺ID
     */
    @ApiModelProperty(value = "工艺ID")
    @TableField("processId")
    private String processId;

    /**
     * 工序号
     */
    @ApiModelProperty(value = "工序号")
    @TableField("processNo")
    private String processNo;

    /**
     * 资源类别ID
     */
    @ApiModelProperty(value = "资源类别ID")
    @TableField(value = "resourceTypeId", updateStrategy = FieldStrategy.IGNORED)
    private Integer resourceTypeId;

    /**
     * 资源组ID
     */
    @ApiModelProperty(value = "资源组ID")
    @TableField(value = "resourceGroupId", updateStrategy = FieldStrategy.IGNORED)
    private Integer resourceGroupId;

    /**
     * 主要码(设备/生产线加起来只有一个主要码，模具只有一个主要码，工装没有主要码)
     */
    @ApiModelProperty(value = "主要码(设备/生产线加起来只有一个主要码，模具只有一个主要码，工装没有主要码)")
    @TableField(value = "primaryCode", updateStrategy = FieldStrategy.IGNORED)
    private Integer primaryCode;

    /**
     * 节拍
     */
    @ApiModelProperty(value = "节拍")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double beat;

    /**
     * 定额
     */
    @ApiModelProperty(value = "定额")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double quota;

    /**
     * 准备工时
     */
    @ApiModelProperty(value = "准备工时")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double preparationTime;

    /**`
     * 工价
     */
    @ApiModelProperty(value = "工价")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double wages;

    /**`
     * 加工中心
     */
    @ApiModelProperty(value = "加工中心")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String machiningCenter;

    /**`
     * 使用模穴数
     */
    @ApiModelProperty(value = "使用模穴数")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer useCavityNumber;

    /**`
     * 模穴位
     */
    @ApiModelProperty(value = "模穴位")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String cavityPlace;

    /**`
     * 换模时间（min）
     */
    @ApiModelProperty(value = "换模时间（min）")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double moldChangeTime;

    @ApiModelProperty(value = "产成品品号")
    @TableField("inv_no")
    private String inv_no;

    @ApiModelProperty(value = "产品工艺路线编号")
    @TableField("processRoute")
    private String processRoute;

    @ApiModelProperty(value = "产品工艺目录")
    @TableField("invrt_name")
    private String invrt_name;

    /**
     * 资源组名称
     */
    @ApiModelProperty(value = "资源组名称")
    @TableField(exist = false)
    private String resourceGroupName;

    /**
     * 资源组编号
     */
    @ApiModelProperty(value = "资源组编号")
    @TableField(exist = false)
    private String resourceGroupNO;

    @ApiModelProperty(value = "标准人数")
    @TableField("peopleNum")
    private Integer peopleNum;

//    @ApiModelProperty(value = "")
//    @TableField("invrt")
//    private String invrt;
}
